<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Test extends CI_Controller {

	public function index()
	{
		//$this->load->view('gambar');
    header('Content-Type: text/plain');
		print_r($_SERVER);
	}
  public function test_user_mahendra()
  {

    $this->load->model('User_model');
    
    $data['email']='febri.mh@gmail.com';
    $data['password']=md5('mahendra');
    $data['nama']='Febri Mahendra';
    $data['level']=9;
    header('Content-Type: text/plain');
    var_dump($this);
    $row = $this->User_model->insert($data);
    //echo 'data berhasil dimasukkan pada row '. $row;//1
  }

  public function test_user_operator()
  {
    $this->load->model('User_model');
    $data['email']='operator@mahendra.info.tm';
    $data['password']=md5('operator');
    $data['nama']='Operator';
    $data['level']=1;
    //echo $this->User_model->insert($data); //3
  }

  public function hello_world()
  {
    $this->load->view('hello_world');

  }
}
